import request from "@/utils/request.js"

// 订单列表
export const orderList = (data : any) => {
	return request({
		path: "order/list",
		data
	})
}

// 订单详情
export const orderDetail = (data : any) => {
	return request({
		path: "order/detail",
		data
	})
}

// 取消订单
export const cancelOrder = (data : any) => {
	return request({
		path: "order/cancel",
		method: "POST",
		data
	})
}